package com.cloud.drore.eboss.operation.mapper;

import com.cloud.drore.eboos.common.entity.supplier.ProductRelation;
import com.cloud.drore.eboss.operation.entity.po.OTAGetProductRequest;
import com.cloud.drore.eboss.operation.entity.vo.OTAGetProductResponse;
import com.cloud.drore.eboss.operation.mapper.provider.FactoryGetProductProvider;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: <br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/3/12 9:50 <br>
 * @Author: <a href="1451173193@qq.com">杨亮</a>
 */
public interface FactoryGetProductMapper {

    @SelectProvider(type=FactoryGetProductProvider.class,method = "validateDistributorSql")
    public String validateDistributor(Long disId);
    @SelectProvider(type=FactoryGetProductProvider.class,method = "getProductInfoSingleSql")
    public OTAGetProductResponse getProductInfoSingle(OTAGetProductRequest reqpo);
    @SelectProvider(type=FactoryGetProductProvider.class,method = "getProductInfoAllSql")
    public List<OTAGetProductResponse> getProductInfoAll(OTAGetProductRequest reqpo);
    @SelectProvider(type=FactoryGetProductProvider.class,method = "getProductIdByNumSql")
    ProductRelation getProductIdByNum(ProductRelation product);
}
